package com.aijk.ehm.dao.mybatis;

import com.aijk.ehm.model.EhmAdvertisement;
import com.aijk.ehm.model.EhmAdvertisementExample;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface EhmAdvertisementMapper {
    int countByExample(EhmAdvertisementExample example);

    int deleteByExample(EhmAdvertisementExample example);

    int deleteByPrimaryKey(Long id);

    int insert(EhmAdvertisement record);

    int insertSelective(EhmAdvertisement record);

    List<EhmAdvertisement> selectByExample(EhmAdvertisementExample example);

    EhmAdvertisement selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") EhmAdvertisement record, @Param("example") EhmAdvertisementExample example);

    int updateByExample(@Param("record") EhmAdvertisement record, @Param("example") EhmAdvertisementExample example);

    int updateByPrimaryKeySelective(EhmAdvertisement record);

    int updateByPrimaryKey(EhmAdvertisement record);
}